package com.soft.controller;

import com.soft.pojo.Jianli;
import com.soft.service.EmpRecordService;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author ruoxi
 * @create 2021-12-29 15:51
 */
@WebServlet("/resumeCheckInfo")
public class ResumeCheckInfoServlet extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.setContentType("text/html;charset=utf-8");

        int id = Integer.parseInt(req.getParameter("id"));

        EmpRecordService empRecordService = new EmpRecordService();
        Jianli resume = empRecordService.findEmpRecordById(id);

        req.setAttribute("resumeInfo",resume);
        req.getRequestDispatcher("resumeCheckInfo.jsp").forward(req,resp);
    }
}
